package com.lovo.service.impl;

import com.lovo.bean.CutPageBean;
import com.lovo.bean.SchoolBean;
import com.lovo.dao.ISchoolDao;
import com.lovo.dao.impl.SchoolDaoImpl;
import com.lovo.service.ISchoolService;

public class SchoolServiceImpl implements ISchoolService {
    private ISchoolDao schoolDao = new SchoolDaoImpl();
    @Override
    public CutPageBean<SchoolBean> findByItem(int pageNo, String name, String status) {
        return schoolDao.findByItem(pageNo,name,status);
    }

    @Override
    public void add(SchoolBean schoolBean) {
        schoolDao.add(schoolBean);
    }

    @Override
    public void delete(int id) {
        schoolDao.delete(id);
    }

    @Override
    public void update(SchoolBean schoolBean) {
        schoolDao.update(schoolBean);
    }

    @Override
    public void updateStatus(int id, String status) {
        schoolDao.updateStatus(id,status);
    }
}
